package org.apache.jsp.admin;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.io.*;
import java.util.*;
import beans.BeanLoginAdmin;

public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"error/errorpage.jsp", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\n');
      out.write('\n');
      out.write('\n');
      beans.BeanLoginAdmin mybean = null;
      synchronized (_jspx_page_context) {
        mybean = (beans.BeanLoginAdmin) _jspx_page_context.getAttribute("mybean", PageContext.PAGE_SCOPE);
        if (mybean == null){
          mybean = new beans.BeanLoginAdmin();
          _jspx_page_context.setAttribute("mybean", mybean, PageContext.PAGE_SCOPE);
        }
      }
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n");
      out.write("<!-- VALIDADO :-D -->\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
      out.write("<head>\n");
      out.write("  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n");
      out.write("  <link rel=\"stylesheet\" href=\"../estilos/style.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\"/>\n");
      out.write("  \n");
      out.write(" <script src =\"../ajax/scriptaculous-js-1.8.1/lib/prototype.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write(" <script src =\"../ajax/scriptaculous-js-1.8.1/src/effects.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write(" <script src=\"../ajax/ajax_login.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write(" <script src=\"../ajax/ajax_utils.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("  <script src=\"../js/menu.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("<title>Erasmushelp! - Login</title>\n");
      out.write("<!--[if IE]> <link href=\"estilos/style_ie.css\" rel=\"stylesheet\" type=\"text/css\"> <![endif]-->\n");
      out.write("\n");
      out.write("</head>\n");
      out.write("<body>\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "hidden_admin.jsp", out, false);
      out.write("\n");
      out.write("\t<div id='page_wrapper'>\n");
      out.write("\t\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "cabecera_admin.jsp", out, false);
      out.write("\n");
      out.write("\t\n");
      out.write("\t<div id='content_wrapper'>\n");
      out.write("\t\n");
      out.write("\t<div class='spacer'></div> \n");
      out.write("\t\n");
      out.write("\t<div id='contenido'>\n");
      out.write("\t\n");
      out.write("\t\t<div id=\"wrapper_loginadmin\">\n");
      out.write("\t\t\t<form action=\"#\" id=\"formlogin\" method=\"post\" onsubmit=\"return false\">\n");
      out.write("\t\t\t\t<div class=\"formloginadmin\">\n");
      out.write("\t\t\t\t\t<label for=\"adminuser\">Administrador</label>\n");
      out.write("\t\t\t\t\t<input type=\"text\" id=\"adminuser\" name=\"adminuser\"/>\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t\t<div class=\"formloginadmin\">\n");
      out.write("\t\t\t\t\t<label for=\"adminpassw\">Contrase&ntilde;a</label>\n");
      out.write("\t\t\t\t\t<input type=\"password\" id=\"adminpassw\" name=\"adminpassw\"/>\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t\t<br/>\n");
      out.write("\t\t\t\t<div id=\"capabotonlogin\">\n");
      out.write("\t\t\t\t\t<button class=\"mybtn\" onmouseover=\"goLite(this)\" onmouseout=\"goDim(this)\"\n");
      out.write("\t\t\t\t\tonclick=\"agregaBarraCarga('load');procesaParametrosYRedirige('error_login','formlogin', 'proc_admin.jsp', 'post', 'index_admin.jsp')\">\n");
      out.write("\t\t\t\t\tLogin\n");
      out.write("\t\t\t\t\t</button>\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t</form>\n");
      out.write("\t\t\t\n");
      out.write("\t\t\t<div id=\"load\">\n");
      out.write("\t\t\t\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t\t\t\n");
      out.write("\t\t\t<div id=\"error_login\"></div>\n");
      out.write("\t\t\t\n");
      out.write("\t\t</div>\n");
      out.write("\t\t<div id=\"avisoadmin\" class=\"centrado\">\n");
      out.write("\t\t\t");
 
				if(session.getAttribute("usuario")!=null){
      out.write("\t\t\t\t\n");
      out.write("\t\t\t\t\t<p style=\"text-indent:7em\">Actualmente tiene una sesi&oacute;n iniciada como ");
      out.print(session.getAttribute("usuario"));
      out.write(".</p>\n");
      out.write("\t\t\t\t\t<ul id=\"opcadminsession\">\n");
      out.write("\t\t\t\t\t\t<li>Continuar la sesi&oacute;n en la <a href=\"index_admin.jsp\">p&aacute;gina de inicio de administrador</a>.</li>\n");
      out.write("\t\t\t\t\t\t<li>Abandonar la sesi&oacute;n y volver a la <a href=\"#\" onclick=\"cerrarSesionAdmin('");
      out.print(session.getId());
      out.write("')\">p&aacute;gina de inicio</a>.</li>\n");
      out.write("\t\t\t\t\t</ul>\n");
      out.write("\t\t\t\t\n");
      out.write("\t\t\t");
	}
			
      out.write("\n");
      out.write("\t\n");
      out.write("\t<div class='spacer'></div>\n");
      out.write("\t\n");
      out.write("\t</div>\n");
      out.write("\t</div>\n");
      out.write("\t</div>\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "pie.html", out, false);
      out.write("\n");
      out.write("\t\n");
      out.write("\t</div>\n");
      out.write("\t\n");
      out.write("\t</body>\n");
      out.write("\t\n");
      out.write("\t</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
